package io.finer.erp.jeecg.stock.mapper;

import java.util.List;
import io.finer.erp.jeecg.stock.entity.StkTrayDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 托盘明细表
 * @Author: jeecg-boot
 * @Date:   2020-10-20
 * @Version: V1.0
 */
public interface StkTrayDetailMapper extends BaseMapper<StkTrayDetail> {

	public boolean deleteByMainId(@Param("mainId") String mainId);
    
	public List<StkTrayDetail> selectByMainId(@Param("mainId") String mainId);
	
	/**
	 * @Description 根据托盘编码集合查询托盘明细
	 * @param codes
	 * @return
	 * Create at: 2021-05-12 14:09:37
	 * @author: xzs
	 * Revision:
	 *    2021-05-12 14:09:37 - first revision by xzs
	 *
	 */
	public List<StkTrayDetail> selectByMainCodeList(@Param("codes") List<String> codes);
}
